import { en } from "element-plus/es/locale";

export enum HttpEnum {
	UNAUTHORIZED = 401,
	BAD_REQUEST = 400,
	FORBIDDEN = 403,
	NOT_FOUND = 404,
	METGHOD_NOT_ALLOWED = 405,
	UNPROCESSABLE_ENTITY = 422,
	TOO_MANY_REQUESTS = 429,
	INTERNAL_SERVER_ERROR = 500,
}

export enum RequestEnum {
	FORM_DATA = 'multipart/form-data;charset=UTF-8',
	GET = 'GET',
	POST = 'POST',
	PUT = 'PUT',
	DELETE = 'DELETE'
}

export enum ErrMessageInfo {
	operationFailed = '操作失败',
	errorTip = '错误提示',
	errorMessage = '操作失败,系统异常!',
	timeoutMessage = '登录超时,请重新登录!',
	apiTimeoutMessage = '接口请求超时,请刷新页面重试!',
	apiRequestFailed = '请求出错，请稍候重试',
	networkException = '网络异常',
	networkExceptionMsg = '网络异常，请检查您的网络连接是否正常!',
	canceledError = '已终止请求',

	errMsg401 = '用户没有权限（令牌、用户名、密码错误）!',
	errMsg403 = '用户得到授权，但是访问是被禁止的。!',
	errMsg404 = '网络请求错误,未找到该资源!',
	errMsg405 = '网络请求错误,请求方法未允许!',
	errMsg408 = '网络请求超时!',
	errMsg500 = '服务器错误,请联系管理员!',
	errMsg501 = '网络未实现!',
	errMsg502 = '网络错误!',
	errMsg503 = '服务不可用，服务器暂时过载或维护!',
	errMsg504 = '网络超时!',
	errMsg505 = 'http版本不支持该请求!'
}
